//api.js
import { request } from "../utils/request";
export const login = (data) => {
  return request({
    url: "/login",
    method: "GET",
    body: JSON.stringify(data)
  });
};

export const register = (data) => {
  return request({
    url: "/register",
    method: "POST",
    body: JSON.stringify(data)
  });
};
